package com.lancoo.cvas.mapper;

import com.lancoo.cvas.config.MybatisRedisCache;
import com.lancoo.cvas.entity.PlanTeachingCourseSegment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.CacheNamespace;

import java.util.List;

/**
 * 教学计划-课程-环节中间表
 * 
 * @author liufeng
 * @email 1037383243@qq.com
 * @date 2023-12-04 11:54:00
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface PlanTeachingCourseSegmentMapper extends BaseMapper<PlanTeachingCourseSegment> {

    int addBatch(List<PlanTeachingCourseSegment> insertList);

    List<PlanTeachingCourseSegment> getByclassId(String classId,Integer flag);

    /**
     * 不使用缓存
     * @param taskId
     * @param deleted
     * @return
     */
    List<PlanTeachingCourseSegment> selectPlanTeachingCourseSegmentList(Integer taskId, Integer deleted);
}

